Skip to content

Conversation

Yavor16
Copy link
Contributor

@Yavor16 Yavor16 commented Oct 15, 2025

No description provided.


public class ObjectStoreUtil {

private static final Logger LOGGER = LoggerFactory.getLogger(ObjectStoreUtil.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the log value of these classes was DEBUG:
org.cloudfoundry.multiapps.controller.persistence.services.ObjectStoreFileStorage: DEBUG

consider adding it in manifest + product cf hcp

Comment on lines 111 to 116
public Storage createObjectStoreStorage(Map<String, Object> credentials) {
return StorageOptions.newBuilder()
.setCredentials(getGcpCredentialsSupplier(credentials))
.build()
.getService();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StorageOptions and GCP provider has a built in retry strategy.
We can utilize it and remove the custom retry strategies? I mean we can move Storage creation in the GCP client and in the info creator only to provide the necessary credentials. We're binding this class with gcp classes now.
What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StorageOptions.newBuilder()
.setCredentials(getGcpCredentialsSupplier(credentials))
.setRetrySettings()
.build()
.getService();

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
65.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants